<%--
  Created by IntelliJ IDEA.
  User: 六处
  Date: 2021/7/25
  Time: 9:35
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <title></title>
    <link rel="stylesheet" type="text/css" href="../../css/reset.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/list.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/dist_bootstrap-table.css"/>
    <link rel="stylesheet" type="text/css" href="../../css/bootstrap.css">
    <script src="../../js/jquery-1.11.1.js"></script>
    <script src="../../js/bootstrap.js"></script>
    <script src="../../js/dist_bootstrap-table.js"></script>
    <script src="../../js/dist_locale_bootstrap-table-zh-CN.js"></script>
</head>
<body>

<table id="table"></table>
<script>
    $('#table').bootstrapTable({
        url: '/admin/list.do',
        classes: 'table table-bordered  table-dark table-striped',
        pageSize: 15,
        pageList: [2,5,10, 20, 50],
        autoRefresh: 'fa-clock',
        autoRefreshInterval: '5',
        search: true,
        pagination: true,
        showExtendedPagination:true,
        showButtonIcons:true,
        trimOnSearch:true,
        detailViewIcon:true,
        showRefresh:true,
        smartDisplay:true,
        showToggle:true,
        responseHandler: function (res) {
            console.log(res)
            return eval(res.dataList);
        },
        queryParams:function(params){
            var temp = {
                offset:params.offset,
                pageNumber:params.limit
            };
            return temp;
        },
        columns: [
            {
                title: '快递员编号',
                field: "adminId",
                sortable: true
            },
            {
                title: '快递员姓名',
                field: "adminName",
                sortable: true
            },
            {
                title: '密码',
                field: "adminPwd",
                sortable: true
            },
            {
                title: '手机号码',
                field: "phone",
                sortable: true
            },
            {
                title: '身份证',
                field: "cardId",
                sortable: true
            },
            {
                title: 'IP地址',
                field: "loginIP",
                sortable: true
            },
            {
                title: '上次登陆时间',
                field: "lastTime",
                sortable: true
            },
            {
                title: '状态',
                field: "state",
                sortable: true
            },
            {
                title: '角色',
                field: "role",
                sortable: true
            }
        ]
    })
</script>
</body>
</html>


</body>
</html>
